package com.gameGroups.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gameGroups.Dto.WorksDto;
import com.gameGroups.Dto.WorksExtDto;
import com.gameGroups.Mapper.WorksUploadMapper;
import com.gameGroups.Service.WorksUploadService;
@Service
public class WorksUploadServiceImpl implements WorksUploadService{
   @Autowired
   private WorksUploadMapper worksUploadMapper;
   
	public Integer saveWorks(WorksDto works) {		
		return worksUploadMapper.saveWorks(works);
	}

	public Integer saveWorksExt(WorksExtDto worksExtDto) {		
		return worksUploadMapper.saveWorksExt(worksExtDto);
	}

	public Integer queryWorksExtlayer(int wid) {
		return worksUploadMapper.queryWorksExtlayer(wid);
	}

	public Integer deleteWorks(String wid) {
		return worksUploadMapper.deleteWorks(wid);
	}

	public Integer deleteWorksExt(String wid) {
		return worksUploadMapper.deleteWorksExt(wid);
	}

}
